package com.sa.estupendos.garena.entity.dao;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.sa.estupendos.garena.entity.User;

@Repository
public class UserDAO extends BaseDAO<User>{

	public UserDAO() {
		super(User.class);
		System.out.println("Product DAO++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
	}
	
	public User findByPKID(Object id){
		User entity = getEntityManager().getReference(User.class, id);

		return entity;
	}
	
	public User findByName(String userName){
	//	User entity = getEntityManager().find(User.class, arg1)

	//	return entity;
		return null;
	}
	

}